<!--
 * @Author: ChunLai
 * @Date: 2022-10-25 11:18:14
 * @LastEditTime: 2025-08-14 16:43:14
 * @Description: 常见问题
 * @FilePath: \02.bldinsure\src\views\index\components\Questions.vue
-->
<template>
  <div class="ques_li">
    <div class="flex_ac li_tit" @click="isOpen = !isOpen">
      <div class="flx flex_1">
        <img class="q_img" :src="`${imgUrlPath}/icons/q2_ico.png`" alt="" />
        <span class="md2-txt md2-txt_q ftw5" v-html="item.que"></span>
      </div>
      <span
        :class="isOpen ? 'ms-row2-icon' : 'ms-row-icon'"
        style="margin-left: 10px"
      ></span>
    </div>
    <div class="ans_md ft12 ft_c6" v-if="isOpen">
      <span class="md2-txt md2-txt_a" v-html="item.asks"></span>
    </div>
  </div>
</template>

<script>
export default {
  name: "Questions",
  props: ["item"],
  data() {
    return {
      isOpen: false,
    };
  },
  components: {},
  computed: {},
  mounted() {},
  methods: {},
};
</script>

<style lang="less" scoped>
.md2-txt {
  line-height: 18px;

  &.md2-txt_q {
    color: rgba(52, 52, 52, 1);
    font-size: 14px;
    flex: 1;
  }

  &.md2-txt_a {
    width: 100%;
    color: #666666;
    line-height: 1.5;
    font-size: 12px;
    text-align: justify;
  }

  b {
    font-size: 14px !important;
  }
}

.li_tit {
  min-height: 36px;
  padding: 5px 0;
  justify-content: space-between;

  .q_img {
    width: 18px;
    height: 18px;
    margin-right: 5px;
  }
}

.md2-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
}

.ans_md {
  display: flex;
}
</style>
